import request from '@/utils/request'

// 列表
export function getEatingList(query) {
	return request({
		url: '/bot/eating/list',
		method: 'get',
		params: query
	})
}

// 列表
export function getEatingOwnList(query) {
	return request({
		url: '/bot/eating/ownList',
		method: 'get',
		params: query
	})
}

// 新增
export function addEating(data) {
	return request({
		url: '/bot/eating/add',
		method: 'post',
		data: data
	})
}

// 更新
export function updateEating(data) {
	return request({
		url: '/bot/eating/update',
		method: 'post',
		data: data
	})
}

// 删除
export function removeEating(data) {
	return request({
		url: '/bot/eating/remove',
		method: 'post',
		data: data
	})
}